package com.gzbit.calculator.bll;

public abstract class Opeuration<T> implements IOperation<T> {

    protected T a;
    protected T b;

    public void setValue(T a, T b) throws Exception {
        /*先进行数据合法性检查*/
        if (a > 1000 || b > 1000) {
            throw new Exception("数据范围超限制！");
        } else {
            this.a = a;
            this.b = b;
        }
    }
}
